package com.app.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_computer")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ComputerModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer number;//序号
    private Integer departmentId;//单位
    private String personName;//责任人
    private String name;//计算机编号
    private String diskNumber;//硬盘序列号
    private String brandModel;//品牌型号
    private String activationTime;//启用时间
    private String ipAddress;//ip地址
    private String macAddress;//mac地址
    private Integer type;//1笔记本电脑管理2业务单机电脑3移动硬盘4其他设备5科研电脑终端6办公笔记本
    private String businessContent;//业务内容
    private String equipmentNumber;//设备编号
    private Integer equipmentType;//设备类型
    private String projectName;//项目名称
    private String memoryCard;//内存卡编号
    private Timestamp createTime;
    private Timestamp updateTime;

    @TableField(exist = false)
    private String equipmentTypeText;
    @TableField(exist = false)
    private String departmentText;// 部门字段
}
